package com.bsierp.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public final class Constants {
	  public   final   static   String registUser_defalut="注册失败！" ;
	  public   final   static   String registUser_sucess="注册成功！" ;
	  public   final   static   String registUser_fail="系统错误，注册失败！" ;
	  public   final   static   String registUser_worngvalidatecode="验证码错误！" ;
	  public   final   static   String web_realpath="/bsierp_cn";
	  public   final   static   String userLoginTip_wrongnameorpassword="用户名或密码不正确！";
	  public   final   static   String userLoginTip_wrongvalidatecode="验证码不正确！";
	  public   final   static   String userLoginTip_userfrozen="该用户名已被冻结！";
	  public   final   static   String userLoginTip_userunactivated="该用户未尚未激活！";
	  public   final   static   String userLogin_sessionindex="ses_user";
	  public   final   static   String userAction_defaultresult="系统错误，操作失败！";
	  public   final   static   String userAction_fail="";
	  public   final   static   String userAction_success="操作成功";
	  public   final   static   String employeedefaultphoto="defaultemployee.jpg";
	  public   final   static   String employeephoto_sessionindex="employeephoto";
	  public   final   static   String employee_sessionindex="ses_employee";
	  public   final   static   String queryemployee_defaultresult="无查询结果";
	  public   final   static   String employee_photopath="/images/employee";
	  public   final   static   String product_sessionindex="product";
	  public   final   static   String product_imgaepath="/images/product";
	  public   final   static   String productimage_sessionindex="productimage";
	  public   final   static   String productimage_default="defaultproduct.jpg";
	  public   final   static   String contactperson_sessionindex="contactperson_sessionindex";
	  public   final   static   String addContactPerson_success="添加成功！等待联系人的确认！";
	  public   final   static   String addContactPerson_fail_exsitperson="该联系人已经存在，请不要重复添加！";
	  public   final   static   String addContactPerson_fail_canbeself="不能自己添加自己为联系人！";
	  public   final   static   String agreeAddContactPerson_fail="添加联系人失败！";
	  public   final   static   String agreeAddContactPerson_success="成功添加联系人！";	
	  public   final   static   String updateGroupOfContactPerson_success="更新成功！";
	  public   final   static   String updateGroupOfContactPerson_fail="更新失败！";
	  public   final   static   String addPrivateProduct_success="成功将产品分配给指定联系人！";
	  public   final   static   String addPrivateProduct_fail="操作失败！";
	  public   final   static   String delContactPersonGroup_fail="操作失败,该联系人组正在被使用！无法删除！";
	  public   final   static   String delProductGroup_fail="操作失败,该产品组正在被使用！无法删除！";
	  
	  public   final   static   String getCurrentDateTime(String type){
			SimpleDateFormat sdf=null;
			if(type.equals("a")){
				sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
			}
			if(type.equals("b")){
				sdf=new SimpleDateFormat("yyyy-MM-dd");
			}
			if(type.equals("c")){
				sdf=new SimpleDateFormat("yyyyMMddHHmmss");
			}
			if(type.equals("d")){
                sdf=new SimpleDateFormat("yyyy-MM");
            }
			
			String datetime=sdf.format(new Date());
			return  datetime;
		}

	

}
